package com.ruoyi.parking.service.impl;

import com.ruoyi.parking.domain.ParkCustomer;
import com.ruoyi.parking.mapper.ParkCustomerMapper;
import com.ruoyi.parking.service.IParkCustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 客户信息Service业务层处理
 * 
 * @author chenkai
 * @date 2025-02-08
 */
@Service
public class ParkCustomerServiceImpl implements IParkCustomerService 
{
    @Autowired
    private ParkCustomerMapper parkCustomerMapper;

    /**
     * 查询客户信息
     * 
     * @param customerId 客户信息主键
     * @return 客户信息
     */
    @Override
    public ParkCustomer selectParkCustomerByCustomerId(Integer customerId)
    {
        return parkCustomerMapper.selectParkCustomerByCustomerId(customerId);
    }

    /**
     * 查询客户信息列表
     * 
     * @param parkCustomer 客户信息
     * @return 客户信息
     */
    @Override
    public List<ParkCustomer> selectParkCustomerList(ParkCustomer parkCustomer)
    {
        return parkCustomerMapper.selectParkCustomerList(parkCustomer);
    }

    /**
     * 新增客户信息
     * 
     * @param parkCustomer 客户信息
     * @return 结果
     */
    @Override
    public int insertParkCustomer(ParkCustomer parkCustomer)
    {
        return parkCustomerMapper.insertParkCustomer(parkCustomer);
    }

    /**
     * 修改客户信息
     * 
     * @param parkCustomer 客户信息
     * @return 结果
     */
    @Override
    public int updateParkCustomer(ParkCustomer parkCustomer)
    {
        return parkCustomerMapper.updateParkCustomer(parkCustomer);
    }

    /**
     * 批量删除客户信息
     * 
     * @param customerIds 需要删除的客户信息主键
     * @return 结果
     */
    @Override
    public int deleteParkCustomerByCustomerIds(Integer[] customerIds)
    {
        return parkCustomerMapper.deleteParkCustomerByCustomerIds(customerIds);
    }

    /**
     * 删除客户信息信息
     * 
     * @param customerId 客户信息主键
     * @return 结果
     */
    @Override
    public int deleteParkCustomerByCustomerId(Integer customerId)
    {
        return parkCustomerMapper.deleteParkCustomerByCustomerId(customerId);
    }
}
